import Vue from 'vue';
import router from 'vue-router';

import arbitLogin from './components/arbitlogin.vue'
import Sysarbitpage from './components/sysarbitpage.vue'

import Verifycommissioner from './components/verifycommissioner/index.vue'
import Verify from './components/verifycommissioner/verify.vue'
import VerifyDetail from './components/verifycommissioner/detail.vue'
import CreateApply from './components/verifycommissioner/createapply.vue'

import Verifydirector from './components/verifydirector/index.vue'
import Verifydirct from './components/verifydirector/verify.vue'
import VerifydirectorDetail from './components/verifydirector/detail.vue'
import VerifyCreateApply from './components/verifydirector/createapply.vue'

import Arbitratordirector from './components/arbitrator/index.vue'
import ArbitratorVerify from './components/arbitrator/verify.vue'
import ArbitratorVerifyDetail from './components/arbitrator/detail.vue'
import ArbitratorVerifyCreateApply from './components/arbitrator/createapply.vue'

Vue.use(router);


export default new router({
  routes:[
  {
    path:'/Syspage',                          //仲裁页面
    name:'Syspage',
    component:Sysarbitpage,
    redirect:'/Syspage/VerifycommissionerIndex',
    children:[{
      path:'/Syspage/VerifycommissionerIndex',    //仲裁专员
      name:'VerifycommissionerIndex',
      component:Verifycommissioner
    },{
      path:'/Syspage/VerifycommissionerVerify/:caseno',
      name:'VerifycommissionerVerify',
      component:Verify
    },{
      path:'/Syspage/VerifycommissionerDetail/:caseno',
      name:'VerifycommissionerDetail',
      component:VerifyDetail
    },{
      path:'/Syspage/VerifycommissionerCreateApply/:caseno',
      name:'VerifycommissionerCreateApply',
      component:CreateApply
    },
    {
      path:'/Syspage/VerifydirectorIndex',     //仲裁主任
      name:'VerifydirectorIndex',
      component:Verifydirector
    },{
      path:'/Syspage/Verifydirector/:caseno',
      name:'Verifydirector',
      component:Verifydirct
    },{
      path:'/Syspage/VerifydirectorDetail/:caseno',
      name:'VerifydirectorDetail',
      component:VerifydirectorDetail
    },{
      path:'/Syspage/VerifydirectorCreateApply/:caseno',
      name:'VerifydirectorCreateApply',
      component:VerifyCreateApply
    },
    {
      path:'/Syspage/ArbitratordirectorIndex',     //仲裁员
      name:'ArbitratordirectorIndex',
      component:Arbitratordirector
    },{
      path:'/Syspage/ArbitratorVerify/:caseno',
      name:'ArbitratorVerify',
      component:ArbitratorVerify
    },{
      path:'/Syspage/ArbitratorVerifyDetail/:caseno',
      name:'ArbitratorVerifyDetail',
      component:ArbitratorVerifyDetail
    },{
      path:'/Syspage/ArbitratorVerifyCreateApply/:caseno',
      name:'ArbitratorVerifyCreateApply',
      component:ArbitratorVerifyCreateApply
    }]
  },
  {
    path:'/',
    name:'arbitLogin',
    component:arbitLogin,
    meta:{
        title: '鹰潭仲裁委平台管理系统'
    }
  },{path:'*',redirect:'/'}]
})